﻿using SqlSugar;
using System;
using System.Collections.Generic;

namespace WoodAdmin.Models
{
    [Serializable]
    public partial class SysUser
    {
        public SysUser()
        {
            RoleIds = new List<int>();
        }

        [SugarColumn(ColumnName = "RoleName", ColumnDescription="角色名称", IsNullable=true, IsIgnore = true)]
        public string RoleName { get; set; }

        [SugarColumn(ColumnName = "RoleIds", ColumnDescription = "用户角色", IsNullable = true, IsIgnore = true)]
        public List<int> RoleIds { get; set; }

        [SugarColumn(IsNullable = true, IsIgnore = true)]
        public List<SysUserRole> Roles { get; set; }
    }
}
